<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>java在线网盘系統-后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/static/layui/css/layui.css" media="all">
    <script src="${ctx}/static/layui/layui.js"></script>
</head>
<body style="padding:30px;height: 100%;">
<blockquote class="layui-elem-quote" style="text-align: center;">
    用户管理
</blockquote>
<table class="layui-table">
    <tr class="layui-bg-blue">
        <th>编号</th>
        <th>用户名</th>
        <th>密码</th>
        <th>邮箱</th>
        <th>身份证</th>
        <th>注册时间</th>
        <th>操作</th>
    </tr>
    <c:forEach var="list" items="${userList}">
        <tr>
            <td>${list.id}</td>
            <td>${list.username }</td>
            <td>${list.password } KB</td>
            <td>${list.email }</td>
            <td>${list.idcard }</td>
            <td>${list.registerTime }</td>
            <td><a href="${ctx}/deleteUser?id=${list.id }" class="layui-btn layui-btn-danger">删除</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
